<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>朝闻天下后台管理</title>

    <include file="Public/head"/>




    <link href="__PUBLIC__/assets_h/stylesheets/datepicker.css" media="all" rel="stylesheet" type="text/css"/>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.bootstrap.wizard.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/fullcalendar.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.dataTables.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.easy-pie-chart.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.isotope.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.fancybox.pack.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/select2.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.inputmask.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.validate.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/bootstrap-fileupload.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/bootstrap-datepicker.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/bootstrap-timepicker.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/daterange-picker.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/date.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.sparkline.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/main.js" type="text/javascript"></script>

    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">

</head>
<body class="no-skin">
<include file="Public/header"/>

<div id="wrap" style="margin-bottom: 60px">
    <div class="container-fluid">
        <include file="Public/sidmenu"/>
        <div class="col-md-10 col-md-offset-2 " style="margin-bottom: 30px">
            <h2 style="color: #56abe4; margin-bottom: 0px;padding-bottom: 0px;">
                <p class="bg-white" style="font-weight:bold;margin-bottom: 10px;margin-top: 10px;font-size: 30px">添加新闻信息</p>
            </h2>
            <hr>
        </div>

        <div class="col-md-12  col-md-offset-1" style="">
            <div class="col-md-2"></div>
            <div class="col-md-6">
                <form method=post action="{:U('index.php/Admin/News/insert')}" enctype="multipart/form-data"class="form-horizontal">

                    <div class="form-group">
                        <label  class="col-md-4 control-label">新闻标题</label>
                        <div class="col-md-4" ><input style="margin-left: 2%" type="text" name="title" class="form-control" placeholder="新闻标题" required=""></div>

                    </div>
                    <div class="form-group">
                        <label  class="col-md-4 control-label">新闻类别</label>
                        <div class="col-md-4">
                            <select class="form-control" name="tid" >
                                <option value="1">体育</option>
                                <option value="2">时政</option>
                                <option value="3">娱乐</option>
                                <option value="4">科技</option>
                                <option value="5">军事</option>
                                <option value="6">游戏</option>
                                <option value="7">视频</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group" style="margin-top: 2%">
                        <label  class="col-md-4 control-label">新闻内容</label>
                        <div class="col-md-4">
                            <textarea style="margin-left: 2%" type="text" name="content" rows="3" class="form-control" placeholder="新闻内容" ></textarea>
                        </div>
                    </div>
                    <!--<div class="form-group" style="margin-top: 2%">
                        <label  class="col-md-4 control-label">发布时间</label>
                        <div class="col-md-4">
                            <input style="margin-left: 2%" type="date" name="publishment" class="form-control" placeholder="发布时间" >
                        </div>
                    </div>-->
                    <!--<div class="form-group" style="margin-top: 2%">
                        <label  class="col-md-4 control-label">状态</label>
                        <div class="col-md-4">
                            <label class="radio-inline">
                                <input style="margin-left: 2%" type="radio" name="satus" value=0 checked>通过
                            </label>
                            <label class="radio-inline">
                                <input style="margin-left: 2%" type="radio" name="satus" value=1>未通过
                            </label>
                        </div>
                    </div>-->
                    <div class="form-group">
                        <label  class="col-md-4 control-label">发布人</label>
                        <div class="col-md-4" ><input style="margin-left: 2%" type="text" name="adduser" class="form-control" placeholder="发布人" required=""></div>
                    </div>
                    <!--<div class="form-group" style="margin-top: 2%">
                        <label  class="col-md-4 control-label">置顶</label>
                        <div class="col-md-4" ><input style="margin-left: 2%" type="text" name="top" class="form-control" placeholder="置顶" required=""></div>
                    </div>-->

                    <!--<div class="form-group" style="margin-top: 2%">-->
                        <!--<label for="exampleInputFile" class="col-md-4 control-label">新闻图片</label>-->
                        <!--<div class="col-md-4">-->
                            <!--<input style="margin-left: 2%" type="file" name="pic" id="exampleInputFile" required>-->
                        <!--</div>-->
                    <!--</div>-->


                    <div class="form-group" style="margin-top: 2%">
                        <label  class="col-md-4 control-label">新闻图片</label>
                        <div class="row" style="margin-top: 2%">
                            <div class=" col-md-6 col-md-offset-4">
                                <div class="fileupload fileupload-new" data-provides="fileupload" style=""><input type="hidden" value="" name="pic" >
                                    <div class="fileupload-new img-thumbnail"
                                         style="width: 110px; height: 110px;background-color:#5f5f5f">
                                        <img src="">
                                    </div>
                                    <div class="fileupload-preview fileupload-exists img-thumbnail"
                                         style="width: 110px; max-height: 110px;"></div>


                    <span class="btn btn-default btn-file">
                        <span class="fileupload-new">选择</span>
                        <span class="fileupload-exists">重选</span><input type="file" name="pic">
                        </span>
                          <span>
                        <a class="btn btn-default fileupload-exists" data-dismiss="fileupload"
                           href="#">撤销</a>
                        </span>
                                </div>
                            </div>
                        </div>
                    </div>


                    <div class="form-group" style="margin-top: 2%">
                        <div class="col-sm-offset-8 col-sm-10" style="margin-left: 45%">
                            <input type="submit" class="btn btn-success" value="提交" >


                        </div>
                    </div>

                </form>
            </div>
            <div class="col-md-6"></div>
        </div>


    </div>
</div>
</body>
</html>
